#!/usr/bin/python

# Ubuntu Tweak - A tool for Ubuntu that makes it easy to configure your
# system and desktop settings.
#
# Copyright (C) 2007-2009 TualatriX <tualatrix@gmail.com>
#
# Ubuntu Tweak is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Ubuntu Tweak is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ubuntu Tweak; if not, write to the Free Software Foundation, Inc.,

import gtk
from common.utils import get_module_picture, get_pixmap_picture

class MainFrame(gtk.Window):
    '''The main window of Ubuntu Tweak'''

    def __init__(self):
        super(MainFrame, self).__init__()

        self.set_default_size(740, 480)
        self.connect('destroy', self.on_app_destroy)

        vbox = gtk.VBox(False, 5)
        self.add(vbox)

        image = gtk.image_new_from_file(get_pixmap_picture('ubuntu-tweak.png'))
        vbox.pack_start(image, False, False, 0)

        self.show_all()

    def on_app_destroy(self, widget):
        gtk.main_quit()
